const RolesService = require("../service/RolesService")

const RolesController = {
    getList: async (req, res) => {
        const result = await RolesService.getList()
        res.send(result)
    },
    updateList:async (req,res) => {
        const result = await RolesService.updateList(req.params.id,req.body)
        res.send(result)
    },
    deleteList:async (req,res) => {
        const result = await RolesService.deleteList(req.params.id)
        res.send(result)
    }
}
module.exports = RolesController